<?php 

/**
* 首页控制器
*/
class IndexController  extends Controller
{
	
	public function index()
	{
		$sql = "select * from stu";

		$res = M()->query($sql);


		$this->assign('res',$res);

		$this->assign('name',"xuebingsi");
		$this->assign('abc',"abc");
		$this->display();

		// include APP_PATH.'/'.MODULE_NAME.'/View/'.CONTROLLER_NAME.'/index.html';

	}

	public function show()
	{
		$sql = "select * from stu";

		$res = M()->query($sql);

		$this->display();

		// var_dump($res);

		// include APP_PATH.'/'.MODULE_NAME.'/View/'.CONTROLLER_NAME.'/show.html';

	}
}






















 ?>